package com.gitee.zhengjiasen.dp.state.demo2;

/**
 * 抽奖活动
 */
public class Activity {
    //奖品数量
    private Integer Count = 0;
    //四个属性, 表示奖品4个状态.
    State noRaffleState = new NoRaffleState(this);
    State canRaffleSate = new CanRaffleSate(this);
    State dispenseOutState = new DispenseOutState(this);
    State dispenseState = new DispenseState(this);
    //默认状态
    private State state;

    public Activity(Integer count, State state) {
        Count = count;
        this.state = state;
    }

    public Integer getCount() {
        return Count;
    }


    //设置奖品数量
    public void setCount(Integer count) {
        Count = count;
    }
}
